package com.spic.business.alarm.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spic.business.alarm.domain.WeatherDataModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * WeatherDataMapper
 *
 * @author liujunyang
 * @version 1.0
 * @date 2021/7/2 16:50
 */
@Mapper
@Component("WeatherDataMapper")
public interface WeatherDataMapper extends BaseMapper<WeatherDataModel> {

    @DS("kuangshan")
    WeatherDataModel getNewestOne();

    @DS("kuangshan2")
    int selectAccountByDeviceName(@Param("deviceName") String deviceName);
}
